package cn.com.headfree.entity.isc;

import java.io.IOException;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;

/**  
 * @Title  LongSerializer.java   
 * @Package cn.com.headfree.entity.isc   
 * @Description TODO
 * @author yangwang 
 * @date  2020年8月4日 下午5:41:26   
 */
public class LongSerializer extends JsonSerializer<Long> {
	public void serialize(Long arg0, JsonGenerator arg1, SerializerProvider arg2)
	    throws IOException, JsonProcessingException
	  {
	    arg1.writeString(String.valueOf(arg0));
	  }

	  public Class<Long> handledType()
	  {
	    return Long.class;
	  }
}
